import { Module } from '@nestjs/common';
import { MyModule } from './my/my.module';
import { UploadModule } from './upload/upload.module';

import { TypeOrmModule } from "@nestjs/typeorm"
import { WorksService } from './works/works.service';
import { WorksModule } from './works/works.module';


@Module({
  imports: [MyModule, UploadModule,
    TypeOrmModule.forRoot({
      type:"mysql",
      host:"127.0.0.1",
      port:3306,
      username:"root",
      password:"root",
      database:"vue3app",
      retryAttempts:3,
      retryDelay:500,
      synchronize:true,
      autoLoadEntities:true

    }),
    WorksModule],
  controllers: [],
  providers: [],
})
export class AppModule { }
